package cn.laixueit.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class UserController {

    @RequestMapping("/a")
    public ModelAndView a(){
        ModelAndView mv = new ModelAndView("a.jsp");
        System.out.println("nihao ");
        mv.addObject("msg","hello world");
        mv.addObject("username","zhangsan");
        return mv;
    }
}
